 <aside id="sidebar">
     <!--分类-->
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list">
          {% for rc in cate_post %}
          <li class="category-list-item">
                  <a class="category-list-link" href="/category/{{ rc.category }}">{{ rc.category__cname}}</a>
                  <span class="category-list-count">{{ rc.c }}</span>
                </li>

          {% endfor %}


      </ul>
      </div>
  </div>

     <!--归档-->
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list">
          {% for i in file_post %}

               <li class="archive-list-item">
                  <a class="archive-list-link" href="/archive/{{ i.0}}/{{ i.1}}">{{ i.0}}年{{ i.1}}月</a>
                  <span class="archive-list-count">{{ i.2 }}</span>
                </li>
          {% endfor %}

      </ul>
    </div>
  </div>

    <!--近期文章-->
  <div class="widget-wrap">
    <h3 class="widget-title">近期文章</h3>
    <div class="widget">
      <ul>
       {% for i in recentpost %}
      <li>
                <a href="/post/{{ i.id }}" target="_blank">{{ i.title }}</a>
            </li>
          {% endfor %}



      </ul>
    </div>
  </div>
  <div class="widget-wrap">
    <h3 class="widget-title">友情链接</h3>
    <div class="widget">
      <ul>
          <li>
            <a href="/weather" target="_blank"><img src="/static/weather.jpg" width="40px"></a>
          </li>
          <li>
            <a href="https://gitee.com/mutual-supervision-to-see-you/you-should-work-hard-every-day" target="_blank"><img src="/static/Gitee.png" width="50px"></a>
          </li>
          <li>
            <a href="/test_one" target="_blank"><img src="/static/wei.jpg" width="50px"></a>
          </li>
      </ul>
    </div>
  </div>
</aside>